using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.CommerceServer.Catalog;

namespace CatalogManagerBL
{
    public class CatalogHelper
    {
        public static void RebuildCatalog(string CatalogName)
        {
            CatalogContext catalogContext = CatalogManagerDAL.DataHelper.InitContext();
            VirtualCatalog virtualCatalog = catalogContext.GetCatalog(CatalogName, "tr-TR") as VirtualCatalog;
            virtualCatalog.Rebuild(true);
        }
    }
}
